package com.reader.cms.entity.sys;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
*
* @@description 
* @author        jiahaikun
* @date          2018-08-06
*/
@TableName("sys_regions")
public class SysRegions extends Model<SysRegions> {

private static final long serialVersionUID = 1L;





private String id;

@TableField("parent_id")
private String parentId;



private String name;



private String alias;



private String pinyin;



private String abbr;



private String zip;

/**
* 用于确定省市区，1省，2市，3区
*/


private Integer level;

/**
* 禁用：N ,可用:Y
*/


private Integer enable;

/**
* 默认值N，删除为 Y
*/

@TableField("del_flag")
private Integer delFlag;



@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
private Date insertDt;



private Long insertUserId;



@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
private Date updtDt;



private Long updtUserId;



private String remark;


public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public String getParentId() {
return parentId;
}

public void setParentId(String parentId) {
this.parentId = parentId;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getAlias() {
return alias;
}

public void setAlias(String alias) {
this.alias = alias;
}

public String getPinyin() {
return pinyin;
}

public void setPinyin(String pinyin) {
this.pinyin = pinyin;
}

public String getAbbr() {
return abbr;
}

public void setAbbr(String abbr) {
this.abbr = abbr;
}

public String getZip() {
return zip;
}

public void setZip(String zip) {
this.zip = zip;
}

public Integer getLevel() {
return level;
}

public void setLevel(Integer level) {
this.level = level;
}

public Integer  getEnable() {
return enable;
}

public void setEnable(Integer enable) {
this.enable = enable;
}

public Integer getDelFlag() {
return delFlag;
}

public void setDelFlag(Integer delFlag) {
this.delFlag = delFlag;
}

public Date getInsertDt() {
return insertDt;
}

public void setInsertDt(Date insertDt) {
this.insertDt = insertDt;
}

public Long getInsertUserId() {
return insertUserId;
}

public void setInsertUserId(Long insertUserId) {
this.insertUserId = insertUserId;
}

public Date getUpdtDt() {
return updtDt;
}

public void setUpdtDt(Date updtDt) {
this.updtDt = updtDt;
}

public Long getUpdtUserId() {
return updtUserId;
}

public void setUpdtUserId(Long updtUserId) {
this.updtUserId = updtUserId;
}

public String getRemark() {
return remark;
}

public void setRemark(String remark) {
this.remark = remark;
}

@Override
protected Serializable pkVal() {
return this.id;
}

@Override
public String toString() {
return "SysRegions{" +
	", id=" + id +
	", parentId=" + parentId +
	", name=" + name +
	", alias=" + alias +
	", pinyin=" + pinyin +
	", abbr=" + abbr +
	", zip=" + zip +
	", level=" + level +
	", enable=" + enable +
	", delFlag=" + delFlag +
	", insertDt=" + insertDt +
	", insertUserId=" + insertUserId +
	", updtDt=" + updtDt +
	", updtUserId=" + updtUserId +
	", remark=" + remark +
"}";
}
}